﻿<Window x:Class="WPF_Example03.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Hóa đơn bán hàng" Height="350" Width="750" FontFamily="Times New Roman" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <ToolBarTray Grid.Row="0">
            <ToolBar Band="1" BandIndex="1">
                <Button Name="mnNew" ToolTip="New">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="d:\hoanganh/Images/NewDocumentHS.png"/>
                        <TextBlock VerticalAlignment="Center">Thêm mới</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="mnedit" ToolTip="Edit">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="20" Height="15" Source="d:\hoanganh/Images/Properties.png"/>
                        <TextBlock VerticalAlignment="Center">Sửa</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="mndelete" ToolTip="Delete">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="20" Height="15" Source="d:\hoanganh/Images/DeleteHS.png"/>
                        <TextBlock VerticalAlignment="Center">Xóa</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button Name="mnsearch" ToolTip="Search">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="20" Height="15" Source="d:\hoanganh/Images/Find_VS.png"/>
                        <TextBlock VerticalAlignment="Center">Tìm kiếm</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="mnprint" ToolTip="Print">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="20" Height="15" Source="d:\hoanganh/Images/PrintHS.png"/>
                        <TextBlock VerticalAlignment="Center">Tìm kiếm</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button Name="mnexit" ToolTip="Exit">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="20" Height="15" Source="d:\hoanganh/Images/StopHS.png"/>
                        <TextBlock VerticalAlignment="Center">thoát</TextBlock>
                    </StackPanel>
                </Button>
            </ToolBar>
        </ToolBarTray>
        <DataGrid Name="datagird" Grid.Row="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Số hóa đơn" Width="80">
                </DataGridTextColumn>
                <DataGridTextColumn Header="Tên hàng" Width="100"></DataGridTextColumn>
                <DataGridTextColumn Header="Số lượng" Width="70"></DataGridTextColumn>
                <DataGridTextColumn Header="Đơn giá" Width="70"></DataGridTextColumn>
                <DataGridTextColumn Header="Trị giá" Width="70"></DataGridTextColumn>
                <DataGridTextColumn Header="Khuyến mãi" Width="80"></DataGridTextColumn>
                <DataGridTextColumn Header="Diễn giải" Width="100"></DataGridTextColumn>
            </DataGrid.Columns>
          
        </DataGrid>
        <StatusBar Grid.Row="3">
            <StatusBarItem Name="sbiSohd" Content="Tổng số hóa đơn:5"/>
        </StatusBar>
    </Grid>
</Window>
